<template>
<div>
  密码：<input type="text" v-model="password">
</div>
</template>

<script>
export default {
  name: 'password',
  data () {
    return {
      password:''
    }
  },
  watch:{
    password(newData){
      this.$store.commit('SET_PASSWORD',newData)
    }
  }
}
</script>

<style scoped>

</style>
